<template>
  <div>
  <h2>hello world</h2>
    <button @click="count++">点击{{count}}次</button>
  </div>
</template>

<script>
//组件当中的this就是代表当前组件
export default {
  name: '',
  data(){
    return {
      count:0,
    }
  },
}
</script>

<style scoped>
h2{
  color: hotpink;
}
</style>